x86/hvm: do actually init nested HVM state for VCPUs
authorTim Deegan <Tim.Deegan@citrix.com>
Thu, 7 Apr 2011 10:39:35 +0000 (11:39 +0100)
committerTim Deegan <Tim.Deegan@citrix.com>
Thu, 7 Apr 2011 10:39:35 +0000 (11:39 +0100)
commitfd6ee4bb06ec232346892cc805730e939d710e62
treefda2b12adf4868214ab765ead309a9b58becf222
parentf08e80a9df74ab40c3da0da4dc059300973e6dbf
x86/hvm: do actually init nested HVM state for VCPUs
when nested HVM is enabled after VCPus are allocated.
The previous patch would fail because the call to
nestedhvm_vcpu_initialise() in the HVM param set code
happens before nestedhvm_enabled(v->domain) is true.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/nestedhvm.c